$(PROGRAMS): $(LDEPS)

DEPENDENCIES = ../chord/libchord.a ../i3/libi3.a \
	       ../i3_client/libi3client.a ../aeshash/libaes.a

noinst_PROGRAMS = \
                    fd_client \
                    fd_server \
                    middlebox \
                    ping_test \
                    proxy_test \
                    recv_anycast \
                    recv_private_trigger \
                    recv_private_trigger_chain \
                    recv_public_trigger \
                    recv_shortcut \
                    recv_ratelimit \
                    send_anycast \
                    send_middlebox \
                    send_private_id \
                    send_public_id \
                    send_shortcut \
                    send_ratelimit \
                    timer_test 

fd_client_SOURCES = fd_client.c utils.c
fd_server_SOURCES = fd_server.c utils.c
middlebox_SOURCES = middlebox.c utils.c
ping_test_SOURCES = ping_test.c utils.c
proxy_test_SOURCES = proxy_test.c utils.c
recv_anycast_SOURCES = recv_anycast.c utils.c
recv_private_trigger_SOURCES = recv_private_trigger.c utils.c
recv_private_trigger_chain_SOURCES =  recv_private_trigger_chain.c utils.c
recv_public_trigger_SOURCES = recv_public_trigger.c utils.c
recv_shortcut_SOURCES = recv_shortcut.c utils.c
recv_ratelimit_SOURCES = recv_ratelimit.c utils.c
send_anycast_SOURCES = send_anycast.c utils.c
send_middlebox_SOURCES = send_middlebox.c utils.c
send_private_id_SOURCES = send_private_id.c utils.c
send_public_id_SOURCES = send_public_id.c utils.c
send_shortcut_SOURCES = send_shortcut.c utils.c
send_ratelimit_SOURCES = send_ratelimit.c utils.c
timer_test_SOURCES = timer_test.c utils.c

INCLUDES = -I../i3 -I../i3_client -I../utils
MYLDADD = ../i3_client/libi3client.a ../i3/libi3.a \
	  ../utils/libutils.a ../aeshash/libaes.a
MYLDFLAGS = -lpthread -static -lxml2 -lm

fd_client_LDADD =$(MYLDADD) 
fd_server_LDADD =$(MYLDADD) 
middlebox_LDADD =$(MYLDADD) 
ping_test_LDADD =$(MYLDADD) 
proxy_test_LDADD =$(MYLDADD) 
recv_anycast_LDADD =$(MYLDADD) 
recv_private_trigger_LDADD =$(MYLDADD) 
recv_private_trigger_chain_LDADD = $(MYLDADD) 
recv_public_trigger_LDADD =$(MYLDADD) 
recv_shortcut_LDADD =$(MYLDADD) 
recv_ratelimit_LDADD =$(MYLDADD) 
send_anycast_LDADD =$(MYLDADD) 
send_middlebox_LDADD =$(MYLDADD) 
send_private_id_LDADD =$(MYLDADD) 
send_public_id_LDADD =$(MYLDADD) 
send_shortcut_LDADD =$(MYLDADD) 
send_ratelimit_LDADD =$(MYLDADD) 
timer_test_LDADD =$(MYLDADD) 

fd_client_LDFLAGS =$(MYLDFLAGS) 
fd_server_LDFLAGS =$(MYLDFLAGS) 
middlebox_LDFLAGS =$(MYLDFLAGS) 
ping_test_LDFLAGS =$(MYLDFLAGS) 
proxy_test_LDFLAGS =$(MYLDFLAGS) 
recv_anycast_LDFLAGS =$(MYLDFLAGS) 
recv_private_trigger_LDFLAGS =$(MYLDFLAGS) 
recv_private_trigger_chain_LDFLAGS = $(MYLDFLAGS) 
recv_public_trigger_LDFLAGS =$(MYLDFLAGS) 
recv_shortcut_LDFLAGS =$(MYLDFLAGS) 
recv_ratelimit_LDFLAGS =$(MYLDFLAGS) 
send_anycast_LDFLAGS =$(MYLDFLAGS) 
send_middlebox_LDFLAGS =$(MYLDFLAGS) 
send_private_id_LDFLAGS =$(MYLDFLAGS) 
send_public_id_LDFLAGS =$(MYLDFLAGS) 
send_shortcut_LDFLAGS =$(MYLDFLAGS) 
send_ratelimit_LDFLAGS =$(MYLDFLAGS) 
timer_test_LDFLAGS =$(MYLDFLAGS) 

EXTRA_DIST = README
CLEANFILES = core *.core *~ *.rpo
MAINTAINERCLEANFILES = Makefile.in

